package com.example.builderpattern.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ash
 * @description  具体产品类
 * @create 2023/2/12  22:34:44
 * @className Product
 * @verson 1.0.0
 */
public class Product {

   static List<String> parts = new ArrayList<>();

    public void  add(String part){
        parts.add(part);
    }

    public void Show(){
        System.out.println("产品创建---");
        parts.forEach(System.out::println);
    }
}
